package com.example.service;

import com.example.domain.entity.Device;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.domain.query.DeviceQuery;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author baomidou
 * @since 2025-05-13
 */
public interface IDeviceService extends IService<Device> {

IPage<Device> pageQuery(DeviceQuery query, int pageNum, int pageSize);

    /**
     * 更新设备状态
     * @param deviceId 设备ID
     * @param status 设备状态
     * @return 是否成功
     */
    boolean updateDeviceStatus(Integer deviceId, String status);
}
